Adding input detection for players
merge