Refactored input to make it more manageable for multiplayer