adding profiling tool
Profiler at work: multiplication is visibly faster than shift (at least on MRI 2.0)
Reverting update_collision_flags to declarative (old) logic

 (profiler says it's faster on Ruby 2.0)
Profiler again: unrolling graphics array method calls
Profiler: avoiding multiple calls and [].include?