Fixed bugs when played on an android device