Update Platform.java

fixed the platform and its collision issue