The direction of the ball and horizontal end vertical speed depends on where it hits hits the player.
Put logic for collision detection in collision.c, increasing readabillity of code.
Created emArkenoid with basic functionallity