Thanks for the input ZXTube. The score at the end is no longer broken and I have added highscores and waves. Feel free to provide more feedback if you like.