public void changeDirection(boolean turnLeft){
			if (direction == UP){
				velocityX = velocityY;
				velocityY = 0;
				if (turnLeft){
					direction = LEFT;
				}
				else{
					velocityX = -velocityX;
					direction = RIGHT;
				}
			}
			else if (direction == DOWN){
				velocityX = velocityY;
				velocityY = 0;
				if (turnLeft){
					direction = RIGHT;	
				}
				else{
					velocityX = -velocityX;
					direction = LEFT;
				}
			}
			else if (direction == LEFT){
				velocityY = velocityX;
				velocityX = 0;
				if (turnLeft){
					direction = DOWN;
					velocityY = -velocityY;
				}
				else{
					direction = UP;
				}	
			}
			else{
				velocityY = velocityX;
				velocityX = 0;
				if (turnLeft){
					direction = UP;
					velocityY = -velocityY;
				}
				else{
					direction = DOWN;
				}
			}	
		}