ready function for lobby