}
@Override
public void onEvent(Event e) {
if(e != null && e.getType().equals("SquarePlaced")){
SquarePlacedEvent lineEvent = (SquarePlacedEvent) e;
if(lineEvent.getSquare() != null && lineEvent.getSquare().equals(this.square)){
SpriteComponent squareSprite = (SpriteComponent) ComponentSystem.getInstance().getComponentWithTypeAndLabel(SquareGenerator.getSquareLabel(square), SpriteComponent.class);
if(squareSprite != null){
squareSprite.setImageFilename(ColourManager.getSquareForPlayer(square.getOwningPlayer().getId()), true);
}
}