Changed the logic of the game as to separate the logic of the rectangles from the logic of the world.

Fixed a bug with line collision using wrong variables