Bad Rev10: so many game functions work but not main (sliding calculations)