Refactor menu loop to use game loop (#291)

Fix crash in high score screen