Main loop written, Platform class created