Added platform collision

somewhat dirty code, implements Y-collision