Updated server code to implement rudimentary wave system and delayed damage system for enemies attacking players.