added canvas dimming for pause state
add pause key(P) toggle