Multiplayer input and rectangle collision