et, true, shift);
								
							}
						}
						
						timeOfLastUpdate = timestamp;
						game.update();
						ticksCounter++;
					}
					
					percentageOfCurrentTickPassed = Math.min((timestamp - timeOfLastUpdate) / TICK_TIME, 1);
					
					// draw everything
					game.draw();
					keyManager.draw();
					interface.draw();
					
				}
				else if(game_state == GAME.EDITOR)
				{
					editor.draw();
				}
				else if(game_state == GAME.LOBBY)
				{
					lobby.draw();
				}
				else
				{
					menu.dra