Include spaces around control structures. This applies to lines 135-146.

if(state.isShuffleMap){
should be:
if (state.isShuffleMap) {