message types and some code added for lobby