(polish) Used new after() and before() methods to call ShapeRenderer at correct position