added js checks for empty file input elements
added maxTurnTime checks when running the game