finished game and menu functionality