Fixed GameLoop to support multiple players and fixed UNIX style endings