rustbyte/shotgunrobot — pull request #2 by GeorgeValergas (2014-12-01 00:15:00+00:00)
Title: Change 2/3 Add Encapsulation for Game.player to remove message chaining

Removed some message chaining by making Game.player private. Level now uses game.getPlayer() method.

Within the Level class, Level has a getPlayer() method which delegates to the game object's getPlayer method.

```java
public Player getPlayer() {
return this.game.getPlayer();
}
```

In the future, the same concept could be used to encapsulate Level.game, which is currently accessed publicly.