Moving lua server side to server.c