If the game freezes, just click inside it (games can get unresponsive if you click elsewhere on the page).
You've been caught trying to ride the train without a valid ticket. There's only one thing for it - run! With the ticket inspector in hot pursuit, jump over luggage, barge through doors and slide under railway staff. If you're too slow and the inspector catches up with you, it's game over!