Added gamemode method to basemode, cleaned up code