/**
* service.game Module
*
* Description
*/
angular.module('service.GameManager', [
    'resource.GameData',
    'service.GridService',
    'service.Piece'
])
.factory('GameManager', [
    'GameData',
    'GridService',
    'Piece',
function (
    GameData,
    GridService,
    Piece
){
    var game = {
        currentPiece: null
    };

    game.newGame = function newGame() {
        game.currentPiece = new Piece({
            x: 4,
            y: 0
        });
        GridService.buildEmptyGameBoard();
        game.update();
    };

    game.getCurrentPiece = function getCurrentPiece() {
        return game.currentPiece;
    };

    game.update = function update() {
        var self = this;
        window.requestAnimationFrame(function () {
            self.update();
        });
    };
    
    return game;
}]);
@@ -646,139 +646,384 @@
 ame.
-update = function update() %7B%0A        var self = this;%0A        window.requestAnimationFrame(function () %7B%0A            self.update();
+getPositionX = function getPositionX() %7B%0A        return game.currentPiece.getPositionX();%0A    %7D;%0A%0A    game.getPositionY = function getPositionY() %7B%0A        return game.currentPiece.getPositionY();%0A    %7D;%0A%0A    game.moveCurrentPiece = function moveCurrentPiece() %7B%0A        var speedY = game.getPositionY() + 0.01;%0A        game.currentPiece.updatePosition(%7B%0A            y: speedY
 %0A   

update function to update the piece location