public Impact hitWall(int width, int height) 
	{
		
		if (X <= 0)
		{
			if(Y <= 0 || Y +(SizeY*2)  >= height - (SizeY*4))
				return Impact.BOTH; //ball about to hit corner
			return Impact.LEFT;
		}

		else if (X >= 700 - SizeX)
		{
			if(Y <= 0 || Y +(SizeY*2)  >= height - (SizeY*4))
				return Impact.BOTH; //ball about to hit corner
			return Impact.RIGHT;
		}

		else if (Y <= 0)
			return Impact.TOP;
		
		else if (Y +(SizeY*2)  >= height-(SizeY*4))
			return Impact.BOTTOM;
		
		return Impact.NONE;
	}