Cleaning input+player code