fixed some bugs, next i will implement some phsics