bounds checking works, also added a grid background to make it easier to see