added placeNewFood function, completed update function, added function to get snake length