public void refresh(){
		Graphics g = getGraphics();
		for(int x = 0; x < 500; x += 50){
			for(int y = 0; y < 500; y += 50){
				if(player.xPos == x/50 && player.yPos == y/50){
					g.setColor(Color.GRAY);
					g.fillRect(x + 10, y + 10, 30, 30);
					g.setColor(Color.BLACK);
					g.drawRect(x + 10, y + 10, 30, 30);
				} else if(garden.isAppleOnField(x/50, y/50)){
					g.setColor(Color.RED);
					g.fillRect(x + 10, y + 10, 30, 30);
					g.setColor(Color.BLACK);
					g.drawRect(x + 10, y + 10, 30, 30);				
				} else {
					g.setColor(Color.WHITE);
					g.fillRect(x + 10, y + 10, 31, 31);
				}
			}
		}
	}