Small code cleanups, added initial player state check to webapp controller