Ray is displayed and cast is nearly working