Intruder photo - Test

Can someone see what I did wrong here. I've just started and I'd like to see how to improve the codes I'm trying to make. So if you've found a problem in the code, and you're interested in changing it. Tell me when you've done that in the comments. Thanks!!!