reviewing and improving server.lua code for a police system