code clean up + game messages on input.js