private void tick() {
		keyBoard.tick();
		player.tick();

		if (Main.isClient() && Main.getClient() != null) {
			Main.getClient().tick();
			if (!Main.getClient().isConnected()) {
				logger.info("connection lost!");
				System.exit(0);
			}
		}

		if (mainTickHandler != null)
			mainTickHandler.onTick();
	}