My game is replayable

My game sucks, but at last the first level is replayable. Finally my state machine can make it work. Now i have an endless first level.

You can play with it here

Github repo is here