Red=ground Black=wall Purple square=Player Blue circles=Danger
Update 1: Added it so that you can only jump while you are on the ground Update 2:avoid blue circles