Revert "Update Modes.java"

This reverts commit 781bc07f4f95f8cd20b0d1dc5738817323958c35.