small changes

window now shuts properly
added end game procedure
added shadows for entities... maybe removed later
removed path finding debug entities
wave loaded in another thread to stop the jolt before the wave
removes sounds again
fixed the main menu bug