Can you please tell me the problem in this actor
import greenfoot.*; public class Miniship extends Actor { private int timer = 0; //public static int rotation; public void act() { move(4); fire(); reduceTime(); randomTurn(); turnAtEdge(); //Miniship.rotation = getRotation(); } public void fire() { if (timer == 0) { getWorld().addObject(new Enemylaser() , getX() , getY()); redlaser.setRotation(getRotation()); Actor laser = getOneObjectAtOffset(0,0,Redlaser.class); timer = 60; Greenfoot.playSound("laser.wav"); } } public void reduceTime() { if (timer > 0) timer--; } /** * With a 10% probability, turn a bit right or left. */ public void randomTurn() { if ( Greenfoot.getRandomNumber(100) < 10 ) { turn( Greenfoot.getRandomNumber(40)-20 ); } } /** * If we reach the edge of the world, turn a little bit. */ public void turnAtEdge() { if (atWorldEdge()) { turn(7); } } public boolean atWorldEdge() { if(getX() < 10 || getX() > getWorld().getWidth() - 10) return true; if(getY() < 10 || getY() > getWorld().getHeight() - 10) return true; else return false; } }