add simple logger
fix situation when apple was generated on snake