public void act()
{
//checkKeyPress();
if("right".equals(Greenfoot.getKey()))
{
//getWorld().removeObject(this);
//getWorld().addObject(new Goalie(),326, 261);
//goalie dives to the right if right arrow key is pressed
//move(50);
setLocation(getX()+100, getY());
}
if("left".equals(Greenfoot.getKey()))
{
//getWorld().removeObject(this);
//getWorld().addObject(new FlippedGoalie(),326, 261);
//goalie dives to the left if left arrow key is pressed
setLocation(getX()-100, getY());
}
}

