Testing input
Menu state
Refactor common things to global.h