add apples and implement apple eating
fix snake direction changing