Fix walls bug, refactor player factory