Long story short, I was working on an actor's code, and somehow I must've highlighted a different section because when I typed everything started being typed over and got really screwed up. I'm trying to fix everything (I already tried undoing the mistakes but it won't take it back) and have been retyping all my methods. I finally finished about 3/4ths of the coding for this actor and when I hit compile, it keeps saying that I have an illegal start of expression in a line of code (I'll provide it at the bottom). Could anyone help me figure this out? I've been trying to retype it again, and look for curly brackets, but I can't fix it. To clarify, it's giving me the error at the "public boolean canSee... Here's the method code that I have:
public void checkKeyPress()
{
if(Greenfoot.isKeyDown("left"))
{
turn(-4);
}
if(Greenfoot.isKeyDown("right"))
{
turn(4);
}
public boolean canSee(Class clss)
{
Actor actor = getOneObjectAtOffset(0, 0, clss);
return actor != null;
}
{
World world;
world = getWorld();
world.removeObject(bacteria);
}

