@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException {
		
		Input input = gc.getInput();
		
		/** Movement */
		if(input.isKeyDown(Forward)) {
			
			x += MOVE_SPEED;
			
			if(x > 368) {
				
				x -= 1;
			}
		}
		
		if(input.isKeyDown(Backwards)) {
			
			x -= MOVE_SPEED;
			
			if(x < 1) {
				
				x += 1;
			}
		}
		
		if (input.isKeyDown(Upwards)) {
			
			y -= MOVE_SPEED;
		
			if(y < 1) {
				
				y += 1;
			}
		}
		
		if (input.isKeyDown(Downwards)) {
			
			y += MOVE_SPEED;
		
			if(y > 295) {
				
				y -= 1;
			}
		}
		
		if (input.isKeyPressed(Fire)) {

			isFiring = true;
			bulletX = x;
			bulletY = y;

	
		}
		
		/** Debug Exit */
		if(input.isKeyDown(Exit)) {
			
			sbg.enterState(0);
			
		}
		
		playerPos();
	}