commit 3: add collision detection for fruit, grow snake and randomly regenerate fruit upon contact