@Override
	public void movePlayer(MoveAction action) {
		if(!isAlive) return;
		switch (action) {
		case UP:
			System.out.println(checkWay(player.getPosition(), MoveAction.UP));
			if(checkWay(player.getPosition(), MoveAction.UP)) {
				player.getPosition().y--;
				checkMove();
			}
			break;
		case RIGHT:
			System.out.println(checkWay(player.getPosition(), MoveAction.RIGHT));
			if(checkWay(player.getPosition(), MoveAction.RIGHT)) {
				player.getPosition().x++;
				checkMove();
			}
			break;
		
			
		case DOWN:
			System.out.println(checkWay(player.getPosition(), MoveAction.DOWN));
			if(checkWay(player.getPosition(), MoveAction.DOWN)){
				player.getPosition().y++;
				checkMove();
			}
			break;
		
			
		case LEFT:
			System.out.println(checkWay(player.getPosition(), MoveAction.LEFT));
			if(checkWay(player.getPosition(), MoveAction.LEFT)) {
				player.getPosition().x--;
				checkMove();
			}
			break;
		default:
			break;
		}
		
	}