Fix NPE in MessageManager
Fix NPE in MessageManager. Also fixes Game not ending properly