event handeling quiet refactored, first steps with shadow casting