public void movePlayer(String direction){
		if (direction.equals("up")){
			if (canMove(direction)){
				location = location - size;
			}			
		} else if (direction.equals("down")){
			if (canMove(direction)){
				location = location + size;
			}			
		}else if (direction.equals("left")){
			if (canMove(direction)){
				location = location - 1;
			}			
		}else if (direction.equals("right")){
			if (canMove(direction)){
				location = location + 1;
			}			
		}
	}