added platforms class and collision detection, working on collision physics for platforms