package game;

import model.Grid;

/**
 * Created by kuro on 10/03/16.
 */
public class Game {

    private Grid grid;
    private boolean gameLooping;
    private long now, last;

    public Game()
    {
        //Setup game environement here
        grid = new Grid();

        gameLooping = true;
    }

    /**
     * Launch the main loop of the game
     */
    public void loop()
    {
        while(gameLooping)
        {
            now = System.nanoTime();
            System.out.println(now - last);
            update();
            last = now;
        }
    }

    private void update()
    {
    }

    public Grid getGrid() {
        return grid;
    }
}

@@ -108,24 +108,52 @@
  Grid grid;%0A
+    private Player player0;%0A
     private 
@@ -292,17 +292,16 @@
 Grid();%0A
-%0A
         
@@ -320,16 +320,48 @@
 = true;%0A
+        player0 = new Player();%0A
     %7D%0A%0A 

Add player object to game