fixed some code cleanup and hopefully the moving platforms