added the main and pause menu classse