moved game logic to globally available functions + added redundancy to SUBMIT button