Oops, wrong variables, fix crash
Add isPaused