changed variable names in GameplayState to Java style