Fixed bug with always skipping to wave 10. Gave proper z-ordering to gui items.