Fixes the collide between palyers and walls

Also adds a alert whe the game finishes