Refactored and optimized rendering and collision detection

Now the game runs smoothly with 4 players (~80 fps on my machine)