creating a function to check is game is full and emiting to client