Code cleanup & improved game performance

I've used added some missing semi colons and added checking whether the
sprite is currently on the screen to only render when necessary which
speeds up performance.