public void goSpeed(){
        if(hspeed!=0){
            if(collideCheck(hspeed,0)!=0){
                moveHorizontal(hspeed);
            }
        }
        if(vspeed!=0){
            if(collideCheck(0,vspeed)!=0){
                moveVertical(vspeed);
            }
        }
    }