intermediate php assignment (Ninja Gold Game) at coding dojo